package com.twu.biblioteca.menu;

import com.twu.biblioteca.command.Command;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 5/29/13
 * Time: 11:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class MenuItem {
    private String name;
    private Command command;

    public MenuItem(String name, Command command) {
        this.name = name;
        this.command = command;
    }

    public String getName(){
        return name;
    }

    public String proceed() {
        return command.execute();
    }
}
